package com.bicon.base.data.pojo.botu;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 子订单
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("order_child")
public class OrderChild extends Model<OrderChild> {

    private static final long serialVersionUID = 1L;

    /**
     * 子订单是否评价  0未评价  1评价
     */
    @TableField("evaluate_state")
    private Integer evaluateState;
    /**
     * 子订单id
     */
    private String id;
    /**
     * 子订单号
     */
    @TableField("child_order_no")
    private String childOrderNo;
    /**
     * 折扣id，多个逗号隔开
     */
    @TableField("discount_id")
    private String discountId;
    /**
     * 商品总价
     */
    @TableField("total_price")
    private BigDecimal totalPrice;
    /**
     * 折扣总金额
     */
    @TableField("discount_money")
    private BigDecimal discountMoney;
    /**
     * 支付金额(含子运费)
     */
    @TableField("pay_money")
    private BigDecimal payMoney;
    /**
     * 取消订单原因
     */
    @TableField("cancel_order")
    private String cancelOrder;
    /**
     * 商铺id
     */
    @TableField("store_id")
    private String storeId;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 定制id
     */
    @TableField("trace_id")
    private String traceId;
    /**
     * 订单类型  2 普通商品   1 定制商品  
     */
    @TableField("order_type")
    private Integer orderType;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 逻辑删除   0正常  1删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 子运费（目的明确退货等）
     */
    private BigDecimal freight;
    /**
     * 分组订单id
     */
    @TableField("main_order_id")
    private String mainOrderId;
    /**
     * 退款退货详细id
     */
    @TableField("order_quit_id")
    private String orderQuitId;
    /**
     * 退款状态  0 可退款退款   1不退款退货   
     */
    @TableField("quit_state")
    private Long quitState;
    /**
     * 申请售后记录id
     */
    @TableField("after_sale_record_id")
    private String afterSaleRecordId;


    public Integer getEvaluateState() {
        return evaluateState;
    }

    public void setEvaluateState(Integer evaluateState) {
        this.evaluateState = evaluateState;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getChildOrderNo() {
        return childOrderNo;
    }

    public void setChildOrderNo(String childOrderNo) {
        this.childOrderNo = childOrderNo;
    }

    public String getDiscountId() {
        return discountId;
    }

    public void setDiscountId(String discountId) {
        this.discountId = discountId;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getDiscountMoney() {
        return discountMoney;
    }

    public void setDiscountMoney(BigDecimal discountMoney) {
        this.discountMoney = discountMoney;
    }

    public BigDecimal getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }

    public String getCancelOrder() {
        return cancelOrder;
    }

    public void setCancelOrder(String cancelOrder) {
        this.cancelOrder = cancelOrder;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTraceId() {
        return traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public BigDecimal getFreight() {
        return freight;
    }

    public void setFreight(BigDecimal freight) {
        this.freight = freight;
    }

    public String getMainOrderId() {
        return mainOrderId;
    }

    public void setMainOrderId(String mainOrderId) {
        this.mainOrderId = mainOrderId;
    }

    public String getOrderQuitId() {
        return orderQuitId;
    }

    public void setOrderQuitId(String orderQuitId) {
        this.orderQuitId = orderQuitId;
    }

    public Long getQuitState() {
        return quitState;
    }

    public void setQuitState(Long quitState) {
        this.quitState = quitState;
    }

    public String getAfterSaleRecordId() {
        return afterSaleRecordId;
    }

    public void setAfterSaleRecordId(String afterSaleRecordId) {
        this.afterSaleRecordId = afterSaleRecordId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderChild{" +
        "evaluateState=" + evaluateState +
        ", id=" + id +
        ", childOrderNo=" + childOrderNo +
        ", discountId=" + discountId +
        ", totalPrice=" + totalPrice +
        ", discountMoney=" + discountMoney +
        ", payMoney=" + payMoney +
        ", cancelOrder=" + cancelOrder +
        ", storeId=" + storeId +
        ", userId=" + userId +
        ", traceId=" + traceId +
        ", orderType=" + orderType +
        ", updateDate=" + updateDate +
        ", createDate=" + createDate +
        ", logicDelete=" + logicDelete +
        ", freight=" + freight +
        ", mainOrderId=" + mainOrderId +
        ", orderQuitId=" + orderQuitId +
        ", quitState=" + quitState +
        ", afterSaleRecordId=" + afterSaleRecordId +
        "}";
    }
}
